/*
 * @FilePath: /flutter_cart/lib/provide/category.dart
 * @Author: Yongchao Wang
 * @Date: 2020-12-03 21:26:20
 * @LastEditors: Yongchao Wang
 * @LastEditTime: 2020-12-04 20:13:43
 */
import 'package:flutter/foundation.dart';

class ChildCategory with ChangeNotifier, DiagnosticableTreeMixin {
  List _childCategoryList = [];

  getChildCategory(List list) {
    List zero = [
      {
        'mallSubId': '00',
        'mallCategoryId': '00',
        'comments': 'null',
        'mallSubName': '全部'
      }
    ];
    zero.addAll(list);
    _childCategoryList = zero;
    notifyListeners();
  }

  List get childCategoryList => _childCategoryList;

  /// Makes `Counter` readable inside the devtools by listing all of its properties
  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
  }
}
